.ud-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.ud-checklist {
  display: grid;
  gap: 12px;
}

.ud-checklist-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  background: rgba(248, 251, 255, 0.9);
}

.ud-checklist-item h3,
.ud-priority-card h3 {
  margin: 0;
  font-size: 18px;
}

.ud-checklist-item p,
.ud-priority-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.ud-priority-stack {
  display: grid;
  gap: 14px;
}

.ud-priority-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.88));
}

.ud-page-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.ud-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ud-summary-card,
.ud-content-card,
.ud-list-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(42, 76, 122, 0.08);
}

.ud-summary-card h3,
.ud-content-card h3,
.ud-list-card h3 {
  margin: 0;
  font-size: 18px;
}

.ud-summary-card p,
.ud-content-card p,
.ud-list-card p,
.ud-list-card li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.ud-summary-value {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-strong);
}

.ud-two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.ud-list-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.ud-filter-toolbar {
  width: 100%;
  max-width: 100%;
  align-items: end;
  grid-template-columns: max-content max-content minmax(248px, 1fr) minmax(248px, 1fr);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable both-edges;
}

.ud-filter-toolbar .filter-toolbar-item {
  min-width: 0;
}

.ud-filter-toolbar .filter-toolbar-item-fixed,
.ud-filter-toolbar .filter-toolbar-item-compare {
  width: auto;
}

.ud-filter-toolbar .filter-toolbar-item-range {
  width: auto;
  min-width: 248px;
}

.ud-filter-toolbar-compact {
  grid-template-columns: minmax(124px, 156px);
  width: fit-content;
  min-width: 124px;
}

.ud-page-stack .hero-panel,
.ud-scorecard-card,
.ud-trend-card {
  min-width: 0;
}

.ud-native-select-shell {
  position: relative;
}

.ud-native-select-shell-promotion {
  width: fit-content;
  min-width: 0;
}

.ud-native-select {
  width: 100%;
  min-width: 124px;
  height: 36px;
  padding: 0 34px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(237, 245, 255, 0.92));
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 36px;
  appearance: none;
  box-shadow: none;
}

.ud-native-select-shell-promotion .ud-native-select {
  width: var(--ud-promo-width, 12ch);
  min-width: 0;
  max-width: 100%;
}

.ud-native-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #7a96bb;
  transform: translateY(-35%);
  pointer-events: none;
}

.ud-filter-toolbar .filter-label {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.2;
}

.ud-filter-toolbar .date-range-display {
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 14px;
}

.ud-filter-toolbar .date-range-segment,
.ud-filter-toolbar .date-range-divider {
  font-size: 12px;
}

.ud-filter-toolbar .date-range-days {
  font-size: 11px;
}

.ud-filter-toolbar .compare-pill-group {
  height: 36px;
}

.ud-filter-toolbar .compare-pill {
  min-height: 32px;
  font-size: 11px;
}

.ud-scorecard-card,
.ud-trend-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.ud-scorecard-card {
  gap: 10px;
}

.ud-trend-card {
  overflow: visible;
}

.ud-section-note {
  margin: 0;
  max-width: 540px;
  color: var(--text-soft);
  line-height: 1.6;
}

.ud-trend-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ud-trend-block {
  display: grid;
  gap: 10px;
  padding: 16px 16px 10px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.92);
  min-width: 0;
  overflow: visible;
}

.ud-trend-block.is-current {
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(122, 169, 255, 0.24);
}

.ud-trend-block.is-yoy {
  background: linear-gradient(180deg, rgba(243, 246, 250, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(143, 158, 177, 0.24);
}

.ud-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.ud-trend-gap-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.ud-trend-gap-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #21446f;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ud-trend-gap-chip strong {
  color: #6b84a3;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ud-trend-gap-chip:hover,
.ud-trend-gap-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(72, 127, 201, 0.28);
  box-shadow: 0 10px 18px rgba(52, 92, 148, 0.10);
  outline: none;
}

.ud-trend-gap-note {
  color: #69809d;
  font-size: 12px;
  line-height: 1.5;
}

.ud-trend-block.is-yoy .ud-trend-gap-chip {
  background: rgba(248, 250, 252, 0.86);
  border-color: rgba(143, 158, 177, 0.2);
  color: #4f647d;
}

.ud-trend-block.is-yoy .ud-trend-gap-chip strong,
.ud-trend-block.is-yoy .ud-trend-gap-note {
  color: #7b8ea4;
}

.ud-trend-meta {
  font-size: 13px;
  font-weight: 700;
  color: #5d7b9d;
  min-width: 0;
  flex: 1 1 220px;
}

.ud-trend-range-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 127, 201, 0.18);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(237, 245, 255, 0.94));
  color: #173f73;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.45;
  justify-content: center;
  max-width: 100%;
}

.ud-trend-block.is-yoy .ud-trend-range-pill {
  border-color: rgba(143, 158, 177, 0.26);
  background: linear-gradient(180deg, rgba(239, 243, 248, 0.98), rgba(231, 237, 244, 0.94));
  color: #53677f;
}

.ud-trend-date-shifted {
  color: #9da8b6;
  font-weight: 700;
}

.ud-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-gutter: stable both-edges;
}

.ud-data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ud-data-table th,
.ud-data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(88, 140, 214, 0.12);
  text-align: left;
  vertical-align: middle;
}

.ud-data-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #60758f;
}

.ud-data-table tbody th {
  font-size: 15px;
  color: var(--text-strong);
}

.ud-data-table tbody td {
  color: #25364b;
  font-weight: 600;
}

.ud-scorecard-card .ud-data-table thead th,
.ud-scorecard-card .ud-data-table tbody td {
  text-align: center;
}

.ud-scorecard-card .ud-data-table thead th:first-child,
.ud-scorecard-card .ud-data-table tbody th:first-child {
  text-align: center;
}

.ud-scorecard-card .ud-data-table thead th,
.ud-scorecard-card .ud-data-table tbody th,
.ud-scorecard-card .ud-data-table tbody td {
  white-space: nowrap;
}

.ud-scorecard-card .ud-data-table thead th.ud-score-block,
.ud-scorecard-card .ud-data-table tbody td.ud-score-block {
  border-bottom-color: rgba(190, 206, 228, 0.38);
  border-left: 1px solid rgba(205, 217, 235, 0.72);
}

.ud-score-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ud-score-summary-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(205, 217, 235, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow:
    0 16px 34px rgba(20, 55, 104, 0.06);
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.ud-score-summary-date {
  margin: 0;
  color: #1f66e5;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.ud-score-summary-metric {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.ud-score-summary-primary-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.ud-score-summary-metric > span {
  color: #435773;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}

.ud-score-summary-metric strong {
  color: #0d2345;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.ud-score-summary-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 212, 231, 0), rgba(199, 212, 231, 0.9), rgba(199, 212, 231, 0));
}

.ud-score-summary-delta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ud-score-summary-primary-row .ud-score-summary-delta {
  padding-bottom: 2px;
}

.ud-score-summary-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.ud-score-summary-progress-block {
  display: grid;
  gap: 6px;
}

.ud-score-summary-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #435773;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.ud-score-summary-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(236, 241, 248, 0.96), rgba(227, 234, 245, 0.96));
  box-shadow: inset 0 1px 2px rgba(121, 144, 179, 0.14);
}

.ud-score-summary-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d63e8, #4a8cff);
}

.ud-score-summary-progress-yoy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 16px;
}

.ud-scorecard-card .ud-data-table thead th:first-child,
.ud-scorecard-card .ud-data-table tbody th:first-child {
  width: 11%;
  min-width: 0;
  text-align: center;
}

.ud-scorecard-card .ud-data-table thead th.ud-score-block-exposure,
.ud-scorecard-card .ud-data-table tbody td.ud-score-block-exposure {
  width: 18%;
  min-width: 0;
}

.ud-scorecard-card .ud-data-table thead th.ud-score-block-browse,
.ud-scorecard-card .ud-data-table tbody td.ud-score-block-browse {
  width: 17%;
  min-width: 0;
}

.ud-scorecard-card .ud-data-table thead th.ud-score-block-progress,
.ud-scorecard-card .ud-data-table tbody td.ud-score-block-progress {
  width: 20%;
  min-width: 0;
}

.ud-scorecard-card .ud-data-table thead th,
.ud-scorecard-card .ud-data-table tbody th,
.ud-scorecard-card .ud-data-table tbody td {
  padding: 20px 14px;
}

.ud-scorecard-card .ud-data-table thead .ud-score-block,
.ud-scorecard-card .ud-data-table tbody .ud-score-block {
  border-radius: 0;
  box-shadow: none;
}

.ud-scorecard-card .ud-data-table thead th {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 253, 0.96));
  border-top: 1px solid rgba(205, 217, 235, 0.72);
  color: #5f7797;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ud-scorecard-card .ud-data-table tbody th,
.ud-scorecard-card .ud-data-table tbody td {
  background: rgba(255, 255, 255, 0.92);
}

.ud-score-head-label {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.ud-score-head-title {
  font-size: 14px;
  font-weight: 800;
  color: #5f7797;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ud-score-head-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #5f7797;
  line-height: 1.2;
}

.ud-score-metric {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.ud-score-metric strong {
  font-size: 14px;
  font-weight: 800;
  color: #0d2345;
  line-height: 1;
}

.ud-score-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ud-score-source-name {
  font-size: 15px;
  font-weight: 800;
  color: #13294b;
}

.ud-score-value-block {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.ud-score-value-block-progress {
  gap: 8px;
  grid-template-rows: 18px 18px;
  align-content: center;
}

.ud-score-value-primary {
  font-size: 15px;
  font-weight: 800;
  color: #0d2345;
  line-height: 1;
}

.ud-score-value-secondary {
  min-height: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ud-score-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.ud-score-delta-suffix {
  opacity: 0.56;
}

.ud-score-delta-marker {
  display: inline-block;
  width: 0;
  height: 0;
}

.ud-score-delta.is-up .ud-score-delta-marker {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
}

.ud-score-delta.is-up {
  color: #0f7f5f;
}

.ud-score-delta.is-down .ud-score-delta-marker {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid currentColor;
}

.ud-score-delta.is-down {
  color: #eb2d24;
}

.ud-score-delta.is-neutral {
  color: #60758f;
}

.ud-score-progress-cell {
  display: block;
  min-width: 0;
  text-align: center;
}

.ud-score-progress-bi {
  display: grid;
  grid-template-columns: 108px auto;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-height: 18px;
}

.ud-score-progress-bi.is-empty {
  grid-template-columns: 108px auto;
  justify-content: stretch;
}

.ud-score-progress-bi-track {
  position: relative;
  width: 108px;
  min-width: 108px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(238, 242, 248, 0.96), rgba(230, 236, 245, 0.96));
  box-shadow: inset 0 1px 2px rgba(121, 144, 179, 0.18);
}

.ud-score-progress-bi-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c67ea, #2f86ff);
}

.ud-score-progress-bi-fill.is-over {
  background: linear-gradient(90deg, #19a36b, #2ec684);
}

.ud-score-progress-bi-label {
  font-size: 11px;
  font-weight: 800;
  color: #1d63e8;
  white-space: nowrap;
  line-height: 1;
  min-width: 40px;
  text-align: left;
}

.ud-score-progress-bi.is-empty .ud-score-progress-bi-label {
  color: #60758f;
}

.ud-score-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.ud-score-meta .ud-section-context {
  font-size: 11px;
}

.ud-chart-stage {
  width: 100%;
  height: 420px;
  min-width: 0;
}

.ud-trend-card .ud-chart-stage {
  height: 392px;
  min-width: 0;
}

.ud-trend-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.ud-trend-title-row h2 {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.ud-trend-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(88, 140, 214, 0.16);
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.92);
  flex: 0 0 auto;
  margin-left: 6px;
}

.ud-trend-view-pill {
  min-width: 46px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6580a2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ud-trend-view-pill.is-active {
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.16), rgba(120, 182, 255, 0.24));
  color: #184da9;
  box-shadow: inset 0 0 0 1px rgba(72, 127, 201, 0.12);
}

.ud-trend-context {
  margin-top: 8px;
  max-width: 920px;
  text-align: left;
  white-space: normal;
  line-height: 1.5;
}

.ud-info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(88, 140, 214, 0.18);
  border-radius: 999px;
  background: rgba(245, 249, 255, 0.94);
  color: #5a7698;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.ud-info-icon-btn[aria-expanded="true"] {
  background: rgba(226, 238, 255, 0.96);
  color: #2f5f9c;
  border-color: rgba(88, 140, 214, 0.3);
}

.ud-info-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(88, 140, 214, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(40, 72, 116, 0.16);
}

.ud-info-popover[hidden] {
  display: none;
}

.ud-info-popover-title {
  margin: 0 0 6px;
  color: #1c4577;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ud-info-popover p {
  margin: 0;
  color: #597392;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.ud-performance-matrix-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.ud-audience-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 12px 6px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(239, 246, 255, 0.74));
  scrollbar-gutter: stable both-edges;
}

.ud-audience-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.ud-audience-table thead th {
  padding: 0 10px 8px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.ud-audience-table thead th:first-child,
.ud-audience-table tbody td:first-child {
  text-align: left;
}

.ud-audience-table .ud-audience-col-package {
  width: 320px;
}

.ud-audience-header-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ud-channel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 238, 251, 0.98), rgba(214, 228, 246, 0.94));
  box-shadow: inset 0 0 0 1px rgba(160, 182, 210, 0.34);
}

.ud-channel-toggle-btn {
  min-width: 48px;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ud-channel-toggle-btn.active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 242, 255, 0.98));
  box-shadow:
    0 3px 10px rgba(58, 109, 184, 0.14),
    inset 0 0 0 1px rgba(45, 108, 223, 0.18);
}

.ud-audience-table-stack {
  display: grid;
  gap: 18px;
}

.ud-audience-table-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ud-audience-table-head-inline h3 {
  margin: 0;
  color: #274d81;
  font-size: 16px;
}

.ud-audience-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ud-audience-title-inline h2 {
  margin: 0;
}

.ud-audience-table-wrap.is-detail {
  max-height: 520px;
  overflow-y: auto;
}

.ud-audience-table-wrap.is-detail .ud-audience-table tbody td {
  padding: 7px 12px;
}

.ud-audience-table-wrap.is-detail .ud-audience-name-cell {
  gap: 0;
}

.ud-audience-table-wrap.is-detail .ud-audience-name {
  font-size: 13px;
  line-height: 1.25;
}

.ud-platform-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 238, 251, 0.98), rgba(214, 228, 246, 0.94));
  box-shadow: inset 0 0 0 1px rgba(160, 182, 210, 0.34);
}

.ud-platform-toggle-btn {
  min-width: 68px;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ud-platform-toggle-btn.active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 242, 255, 0.98));
  box-shadow:
    0 3px 10px rgba(58, 109, 184, 0.14),
    inset 0 0 0 1px rgba(45, 108, 223, 0.18);
}

.ud-audience-table tbody td {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  color: #24364c;
  text-align: center;
  vertical-align: middle;
}

.ud-audience-table tbody td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.ud-audience-table tbody td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.ud-audience-row.is-overall td {
  background: linear-gradient(180deg, rgba(214, 231, 255, 0.98), rgba(199, 222, 252, 0.98));
}

.ud-audience-row.is-cy td {
  background: linear-gradient(180deg, rgba(239, 251, 247, 0.98), rgba(232, 247, 240, 0.98));
}

.ud-audience-row.is-other td {
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 242, 234, 0.98));
}

.ud-audience-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ud-audience-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.ud-audience-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.ud-audience-type-badge.is-overall {
  color: #184da9;
  background: rgba(45, 108, 223, 0.14);
}

.ud-audience-type-badge.is-cy {
  color: #0d7c66;
  background: rgba(13, 124, 102, 0.14);
}

.ud-audience-type-badge.is-other {
  color: #d86934;
  background: rgba(255, 138, 91, 0.16);
}

.ud-audience-type-badge.is-official,
.ud-audience-type-badge.is-package {
  color: #5f7696;
  background: rgba(107, 129, 157, 0.12);
}

.ud-sort-header-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ud-sort-btn {
  width: 28px;
  height: 22px;
  border: 1px solid rgba(88, 140, 214, 0.16);
  border-radius: 999px;
  background: rgba(236, 244, 255, 0.92);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ud-sort-btn.is-active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.18), rgba(120, 182, 255, 0.26));
}

.ud-rate-cell-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

.ud-yoy-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  font-size: 12px;
  font-weight: 900;
}

.ud-yoy-cell.is-positive {
  color: #00b42a;
}

.ud-yoy-cell.is-negative {
  color: #f53f3f;
}

.ud-yoy-cell.is-flat {
  color: #86909c;
}

.ud-benchmark-hit-flag {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #17a36b;
  filter: drop-shadow(0 1px 2px rgba(23, 163, 107, 0.22));
  transform: translateY(0.5px);
}

.ud-benchmark-hit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(13, 124, 102, 0.14);
  color: #0d7c66;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.ud-detail-benchmark-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f8096;
  font-size: 12px;
  line-height: 1.4;
}

.ud-detail-benchmark-note.is-block {
  margin-top: -4px;
  margin-bottom: 4px;
}

.ud-metric-bar-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.ud-metric-bar-track {
  width: 100%;
  height: 24px;
  border-radius: 10px;
  background: rgba(225, 232, 241, 0.68);
  overflow: hidden;
}

.ud-metric-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(134, 179, 255, 0.95), rgba(45, 108, 223, 0.95));
}

.ud-metric-bar-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #17375f;
}

.ud-boston-matrix-shell {
  display: grid;
  gap: 18px;
}

.ud-boston-benchmark-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #6f8096;
  font-size: 12px;
  line-height: 1.45;
}

.ud-profile-card,
.ud-funnel-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.ud-section-header-actions {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ud-profile-title-inline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.ud-profile-title-inline h2 {
  margin: 0;
}

.ud-platform-inline-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ud-platform-inline-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8c9bb0;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
  opacity: 0.55;
}

.ud-platform-inline-btn.active {
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 700;
  opacity: 1;
}

.ud-platform-inline-slash {
  color: #9aa9bd;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  opacity: 0.8;
}

.ud-section-context {
  margin: 0;
  max-width: none;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  white-space: nowrap;
}

.ud-matrix-filter-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 22px;
  background: rgba(246, 250, 255, 0.88);
}

.ud-matrix-filter-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: start;
}

.ud-matrix-filter-row.is-standalone-action .ud-matrix-filter-label {
  padding-top: 0;
  align-self: center;
}

.ud-matrix-filter-label {
  padding-top: 0;
  color: #23436c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 34px;
}

.ud-matrix-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.ud-matrix-filter-inline-gap {
  display: inline-block;
  width: 18px;
  height: 1px;
}

.ud-matrix-filter-trailing {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.ud-matrix-inline-label {
  align-self: center;
  color: #23436c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ud-matrix-filter-chip {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(120, 146, 181, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #5d7088;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ud-matrix-filter-chip:hover {
  border-color: rgba(72, 118, 189, 0.36);
  color: #274a75;
}

.ud-matrix-filter-chip.active {
  border-color: rgba(45, 108, 223, 0.3);
  background: rgba(45, 108, 223, 0.12);
  color: #1f4f95;
  box-shadow: 0 10px 20px rgba(45, 108, 223, 0.1);
}

.ud-matrix-toggle-btn {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(120, 146, 181, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #5d7088;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ud-matrix-toggle-btn:hover {
  border-color: rgba(72, 118, 189, 0.36);
  color: #274a75;
}

.ud-matrix-toggle-btn.active {
  border-color: rgba(45, 108, 223, 0.3);
  background: rgba(45, 108, 223, 0.12);
  color: #1f4f95;
  box-shadow: 0 10px 20px rgba(45, 108, 223, 0.1);
}

.ud-profile-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 640px;
  padding: 8px 10px 6px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(239, 246, 255, 0.74));
  scrollbar-gutter: stable both-edges;
}

.ud-profile-table {
  width: max-content;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 1px;
  table-layout: fixed;
}

.ud-profile-table thead th {
  padding: 10px 12px;
  color: #5d7695;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background: rgba(242, 247, 253, 0.98);
  opacity: 1;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(214, 227, 243, 0.96);
}

.ud-profile-table thead tr:first-child th {
  height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.ud-profile-table thead tr:nth-child(2) th {
  height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.ud-profile-sticky-head-top,
.ud-profile-sticky-head-sub {
  position: sticky;
  z-index: 5;
  background: rgba(242, 247, 253, 0.98) !important;
}

.ud-profile-sticky-head-top {
  top: 0;
}

.ud-profile-sticky-head-sub {
  top: 58px;
}

.ud-profile-table tbody td {
  padding: 10px 12px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #24364c;
  text-align: center;
  vertical-align: middle;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(233, 240, 248, 0.96);
}

.ud-profile-table tbody td:first-child,
.ud-profile-table tbody td:nth-child(2) {
  text-align: left;
}

.ud-profile-tag-head,
.ud-profile-profile-head,
.ud-profile-tag-cell,
.ud-profile-profile-cell {
  position: sticky;
  z-index: 3;
  text-align: center !important;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.ud-profile-tag-head,
.ud-profile-profile-head {
  height: 92px;
  min-height: 92px;
  vertical-align: middle !important;
}

.ud-profile-tag-head,
.ud-profile-tag-cell {
  left: 0;
  min-width: 132px;
  width: 132px;
  background: rgba(242, 247, 253, 0.98) !important;
  box-shadow:
    inset -1px 0 0 rgba(223, 233, 244, 0.96),
    inset 0 -1px 0 rgba(233, 240, 248, 0.96);
}

.ud-profile-profile-head,
.ud-profile-profile-cell {
  left: 132px;
  min-width: 128px;
  width: 128px;
  background: rgba(242, 247, 253, 0.98) !important;
  box-shadow:
    inset 0 -1px 0 rgba(233, 240, 248, 0.96),
    inset -1px 0 0 rgba(223, 233, 244, 0.96),
    8px 0 18px rgba(31, 61, 99, 0.04);
}

.ud-profile-tag-head,
.ud-profile-profile-head {
  z-index: 6;
  background: rgba(242, 247, 253, 0.98);
  box-shadow:
    inset 0 -1px 0 rgba(214, 227, 243, 0.96),
    inset -1px 0 0 rgba(223, 233, 244, 0.96);
}

.ud-profile-group-head.is-group-divider,
.ud-profile-group-cell.is-group-divider {
  border-right: 1px solid rgba(133, 152, 178, 0.4);
}

.ud-profile-tag-cell {
  color: #4d678a;
  font-weight: 800;
  line-height: 1.3;
}

.ud-profile-profile-cell {
  color: #4d678a;
  font-weight: 700;
}

.ud-profile-table tbody td.ud-profile-tag-cell,
.ud-profile-table tbody td.ud-profile-profile-cell {
  background: rgba(242, 247, 253, 0.98) !important;
}

.ud-profile-group-head {
  background: rgba(242, 247, 253, 0.98);
}

.ud-profile-group-head.is-exposure {
  background: rgba(242, 247, 253, 0.98);
}

.ud-profile-group-cell.is-exposure,
.ud-profile-group-cell.is-exposure {
  background: rgba(93, 146, 232, 0.14);
}

.ud-profile-group-head.is-browse {
  background: rgba(242, 247, 253, 0.98);
}

.ud-profile-group-cell.is-browse,
.ud-profile-group-cell.is-browse {
  background: rgba(69, 170, 158, 0.10);
}

.ud-profile-group-head.is-add {
  background: rgba(242, 247, 253, 0.98);
}

.ud-profile-group-cell.is-add,
.ud-profile-group-cell.is-add {
  background: rgba(255, 176, 92, 0.11);
}

.ud-profile-group-head.is-purchase {
  background: rgba(242, 247, 253, 0.98);
}

.ud-profile-group-cell.is-purchase,
.ud-profile-group-cell.is-purchase {
  background: rgba(232, 116, 142, 0.10);
}

.ud-profile-group-title,
.ud-profile-group-note {
  display: block;
}

.ud-profile-group-title {
  color: #4f6b8f;
}

.ud-header-metric-label {
  display: inline-block;
  vertical-align: middle;
}

.ud-header-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(148, 165, 188, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.ud-header-filter-btn:hover {
  border-color: rgba(72, 118, 189, 0.36);
}

.ud-header-filter-btn.active {
  border-color: rgba(45, 108, 223, 0.3);
  background: rgba(45, 108, 223, 0.12);
  box-shadow: 0 4px 10px rgba(45, 108, 223, 0.14);
}

.ud-header-filter-glyph {
  position: relative;
  width: 8px;
  height: 8px;
  display: block;
}

.ud-header-filter-glyph::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #7a8ca5;
}

.ud-header-filter-glyph::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #7a8ca5;
}

.ud-header-filter-btn.active .ud-header-filter-glyph::before,
.ud-header-filter-btn.active .ud-header-filter-glyph::after {
  background: #2d6cdf;
  border-top-color: #2d6cdf;
}

.ud-profile-group-note {
  margin-top: 3px;
  color: #88a0bc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.ud-profile-table tbody td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.ud-profile-table tbody td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ud-profile-table tbody tr {
  filter: none;
}

.ud-profile-conversion-value {
  font-size: 12px;
  font-weight: 700;
  color: #425c7f;
}

.ud-profile-conversion-value.is-positive {
  color: #14966f;
}

.ud-share-bar {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.ud-share-bar.is-empty {
  grid-template-columns: 1fr;
  justify-items: center;
  color: var(--text-soft);
}

.ud-share-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(225, 232, 241, 0.68);
  overflow: hidden;
}

.ud-share-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(134, 179, 255, 0.95), rgba(45, 108, 223, 0.95));
}

.ud-share-bar-label {
  font-size: 12px;
  color: #17375f;
  white-space: nowrap;
}

.ud-profile-plain-delta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #5f7797;
  white-space: nowrap;
}

.ud-profile-plain-delta-suffix {
  margin-left: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.ud-profile-plain-delta.is-positive {
  color: #14966f;
}

.ud-profile-plain-delta.is-negative {
  color: #d05063;
}

.ud-delta-bar {
  position: relative;
  display: grid;
  gap: 6px;
}

.ud-delta-bar.is-empty {
  justify-items: center;
  color: var(--text-soft);
}

.ud-delta-axis {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(147, 165, 189, 0.9) calc(50% - 1px), rgba(147, 165, 189, 0.9) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(241, 246, 252, 0.96), rgba(230, 237, 246, 0.96));
}

.ud-delta-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 14px;
  border-radius: 999px;
}

.ud-delta-fill.is-positive {
  background: linear-gradient(90deg, rgba(61, 189, 142, 0.86), rgba(13, 124, 102, 0.96));
}

.ud-delta-fill.is-negative {
  background: linear-gradient(90deg, rgba(232, 112, 128, 0.96), rgba(209, 79, 97, 0.9));
}

.ud-delta-label {
  font-size: 12px;
}

.ud-delta-label.is-positive {
  color: #0d7c66;
}

.ud-delta-label.is-negative {
  color: #d14f61;
}

.ud-funnel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.ud-funnel-chart-stage {
  height: 260px;
}

.ud-funnel-layout-compact {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.ud-funnel-layout-compact .ud-funnel-chart-stage {
  height: 100%;
  min-height: 228px;
}

.ud-funnel-delta-list {
  display: grid;
  gap: 8px;
}

.ud-funnel-delta-row {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: rgba(250, 252, 255, 0.86);
}

.ud-funnel-delta-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ud-funnel-delta-meta strong {
  font-size: 13px;
  line-height: 1.2;
}

.ud-funnel-delta-meta span {
  color: var(--text-soft);
  font-size: 11px;
}

.ud-funnel-layout-compact .ud-funnel-delta-row {
  padding: 8px 12px;
  gap: 6px;
}

.ud-funnel-layout-compact .ud-funnel-delta-meta strong {
  font-size: 12px;
}

.ud-funnel-layout-compact .ud-funnel-delta-meta span,
.ud-funnel-layout-compact .ud-delta-label {
  font-size: 10px;
}

.ud-funnel-layout-compact .ud-delta-bar {
  gap: 8px;
}

.ud-funnel-layout-compact .ud-delta-axis,
.ud-funnel-layout-compact .ud-delta-bar.is-empty .ud-delta-axis {
  width: 72px;
  min-width: 72px;
}

.ud-funnel-layout-compact .ud-delta-axis {
  height: 10px;
}

.ud-funnel-layout-compact .ud-delta-fill {
  height: 10px;
}

.ud-funnel-card .section-header {
  gap: 10px;
}

.ud-funnel-card .section-header h2 {
  font-size: 22px;
}

.ud-funnel-card .ud-section-note {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
}

.ud-overview-panel-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.ud-overview-page-tight {
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.ud-overview-page-tight .hero-panel,
.ud-overview-page-tight .ud-overview-panel-card,
.ud-overview-page-tight .ud-overview-note-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(23, 67, 128, 0.08);
}

.ud-overview-page-tight .ud-overview-panel-card,
.ud-overview-page-tight .ud-overview-note-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.9));
}

.ud-overview-kpi-panel-card {
  background: rgba(255, 255, 255, 0.98) !important;
}

.ud-overview-trends-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(88, 140, 214, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(236, 244, 255, 0.9));
  color: #254777;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ud-overview-trends-btn:hover {
  border-color: rgba(45, 108, 223, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(45, 108, 223, 0.12);
}

.ud-overview-panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 108, 223, 0), rgba(45, 108, 223, 0.18), rgba(45, 108, 223, 0));
  pointer-events: none;
}

.ud-overview-header-tight {
  gap: 12px;
  min-height: auto;
  padding-bottom: 18px;
  align-content: start;
}

.ud-overview-header-tight .hero-top {
  margin-bottom: 0;
  align-items: center;
}

.ud-overview-title-stack {
  display: grid;
  gap: 8px;
}

.ud-overview-helper-text {
  margin: 0;
  color: #5e7698;
  font-size: 12px;
  line-height: 1.6;
}

.ud-overview-helper-text .is-muted {
  color: #8c9bb0;
}

.ud-overview-title-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ud-overview-title-inline .page-title {
  margin: 0;
}

.ud-overview-title-separator {
  color: #7a8ca5;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.ud-overview-inline-select {
  align-self: center;
}

.ud-overview-header-tight .page-subtitle {
  max-width: 760px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.ud-overview-header-tight .filter-bar {
  margin-top: 0;
  align-self: center;
}

.ud-overview-filter-toolbar {
  grid-template-columns: minmax(0, max-content);
  gap: 10px;
  align-items: end;
  width: fit-content;
  min-width: 0;
  padding: 0;
}

.ud-overview-filter-toolbar .filter-toolbar-item {
  width: auto;
}

.ud-overview-filter-toolbar .filter-block {
  gap: 4px;
}

.ud-overview-filter-toolbar .filter-label {
  margin-bottom: 4px;
}

.ud-overview-inline-select .ud-native-select {
  height: 40px;
  padding: 0 38px 0 16px;
  border-radius: 16px;
  border-color: rgba(108, 146, 198, 0.22);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.9), rgba(236, 244, 255, 0.84));
  color: #23436c;
  font-size: 15px;
  line-height: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.ud-overview-inline-select.ud-native-select-shell::after {
  right: 16px;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 6px;
}

.ud-overview-cascade {
  position: relative;
}

.ud-overview-kpi-selector-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ud-overview-cascade-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(108, 146, 198, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.94), rgba(236, 244, 255, 0.88));
  color: #23436c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.ud-overview-cascade-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #7190b5;
}

.ud-overview-cascade-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 160px 170px;
  overflow: hidden;
  border: 1px solid rgba(88, 140, 214, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(25, 47, 79, 0.16);
}

.ud-overview-cascade-menu.is-single {
  display: block;
  min-width: 158px;
}

.ud-overview-cascade-col {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.ud-overview-cascade-col.is-single {
  min-width: 0;
}

.ud-overview-cascade-col.is-second {
  border-left: 1px solid rgba(88, 140, 214, 0.1);
  background: rgba(248, 251, 255, 0.9);
}

.ud-overview-cascade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #536b89;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ud-overview-cascade-item.is-hovered,
.ud-overview-cascade-item:hover {
  background: rgba(45, 108, 223, 0.08);
  color: #224575;
}

.ud-overview-cascade-item.is-selected {
  background: rgba(45, 108, 223, 0.12);
  color: #1f4f95;
}

.ud-overview-cascade-arrow {
  color: #89a0bf;
  font-size: 14px;
  line-height: 1;
}

.ud-overview-page-tight .ud-overview-panel-card {
  gap: 16px;
  padding: 22px 24px;
}

.ud-overview-page-tight .section-header {
  gap: 10px;
  padding-bottom: 2px;
}

.ud-overview-page-tight .section-header h2 {
  font-size: 22px;
}

.ud-overview-page-tight .card-eyebrow {
  margin-bottom: 2px;
}

.ud-overview-page-tight .section-header h2 {
  line-height: 1.15;
}

.ud-overview-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 6px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.84), rgba(239, 246, 255, 0.68));
  scrollbar-gutter: stable both-edges;
  box-sizing: border-box;
}

.ud-overview-embedded-phase-table {
  margin-top: 4px;
}

.ud-overview-embedded-phase-table .ud-overview-benchmark-table {
  min-width: 0;
  table-layout: auto;
}

.ud-overview-embedded-phase-table .ud-overview-benchmark-table th:first-child,
.ud-overview-embedded-phase-table .ud-overview-benchmark-table td:first-child {
  width: auto;
}

.ud-overview-embedded-phase-table .ud-overview-benchmark-table th:nth-child(2),
.ud-overview-embedded-phase-table .ud-overview-benchmark-table th:nth-child(3),
.ud-overview-embedded-phase-table .ud-overview-benchmark-table th:nth-child(4),
.ud-overview-embedded-phase-table .ud-overview-benchmark-table td:nth-child(2),
.ud-overview-embedded-phase-table .ud-overview-benchmark-table td:nth-child(3),
.ud-overview-embedded-phase-table .ud-overview-benchmark-table td:nth-child(4) {
  width: 22%;
}

.ud-overview-phase-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ud-overview-cell-oval {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 999px;
}

.ud-period-pill.ud-period-pill-phase {
  min-height: 22px;
  padding: 0 10px;
  background: rgba(45, 108, 223, 0.1);
  color: #2c5ca3;
  font-size: 11px;
  font-weight: 800;
}

.ud-overview-funnel-stage-value {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ud-overview-behavior-journey {
  margin-top: 6px;
}

.ud-overview-behavior-journey .ud-overview-journey-funnel,
.ud-overview-behavior-journey .ud-overview-journey-delta {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ud-overview-behavior-journey .ud-overview-funnel-stage,
.ud-overview-behavior-journey .ud-overview-journey-row {
  height: 100%;
}

.ud-overview-behavior-journey .ud-overview-journey-row {
  min-height: 54px;
}

.ud-overview-layer-stack {
  display: grid;
  gap: 12px;
}

.ud-overview-layer-card {
  display: grid;
  gap: 12px;
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ud-overview-behavior-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.98fr) minmax(0, 1.02fr);
  gap: 18px;
  align-items: start;
}

.ud-overview-behavior-funnel {
  display: grid;
  gap: 10px;
  padding: 6px 0 0;
}

.ud-overview-funnel-head {
  display: grid;
  gap: 4px;
}

.ud-overview-funnel-head .card-eyebrow {
  margin: 0;
}

.ud-overview-rate-panel {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.ud-overview-rate-header {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(88px, 1fr) minmax(88px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(88, 140, 214, 0.12);
  color: #60758f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-rate-header span:nth-child(2),
.ud-overview-rate-header span:nth-child(3) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #23436c;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: left;
}

.ud-overview-rate-grid {
  display: grid;
  grid-template-rows: 60px repeat(6, 40px);
  gap: 0;
}

.ud-overview-rate-spacer {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(88px, 1fr) minmax(88px, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(88, 140, 214, 0.08);
}

.ud-overview-rate-row {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(88px, 1fr) minmax(88px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0;
  border-bottom: 1px solid rgba(88, 140, 214, 0.08);
}

.ud-overview-rate-label {
  color: #365982;
  font-size: 12px;
  font-weight: 700;
}

.ud-overview-rate-label.is-yoy {
  color: #7a8ca5;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ud-overview-rate-label.is-empty {
  visibility: hidden;
}

.ud-overview-rate-row .ud-placeholder-chip {
  justify-self: center;
  min-width: 84px;
}

.ud-overview-rate-row.is-yoy .ud-placeholder-chip {
  min-width: 84px;
}

.ud-overview-rate-spacer .ud-placeholder-chip.is-hidden {
  visibility: hidden;
}

.ud-overview-layer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.ud-overview-layer-title-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ud-overview-layer-head h3 {
  margin: 0;
  font-size: 18px;
  color: #274d81;
}

.ud-overview-toggle-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(108, 146, 198, 0.22);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(236, 244, 255, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.ud-overview-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.ud-overview-toggle-icon::before,
.ud-overview-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #456b9e;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.ud-overview-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.ud-overview-toggle-icon::after {
  width: 2px;
  height: 12px;
}

.ud-overview-toggle-btn[aria-expanded="true"] .ud-overview-toggle-icon::after {
  opacity: 0;
}

.ud-overview-layer-kicker {
  margin: 0;
  margin-left: auto;
  text-align: right;
  color: #6f87a9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ud-overview-score-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ud-overview-detail-panel {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(88, 140, 214, 0.14);
}

.ud-overview-detail-table-wide {
  min-width: 1560px;
}

.ud-overview-score-table {
  min-width: 0;
  width: 100%;
}

.ud-overview-score-table thead th {
  white-space: nowrap;
  text-align: center;
  font-size: 11px;
}

.ud-overview-score-table th:first-child,
.ud-overview-score-table td:first-child {
  white-space: nowrap;
}

.ud-overview-score-table tbody th {
  width: 1%;
  min-width: 0;
  text-align: center;
  font-size: 13px;
}

.ud-overview-score-table tbody th[data-overview-current-pill] {
  color: #1d4478;
  font-weight: 800;
}

.ud-overview-score-table tbody th[data-overview-compare-pill] {
  color: #7a8ca5;
  font-weight: 700;
}

.ud-overview-score-table tbody tr:last-child th,
.ud-overview-score-table tbody tr:last-child td {
  color: #7a8ca5;
}

.ud-overview-score-table tbody td {
  text-align: center;
  font-size: 13px;
}

.ud-overview-score-table th,
.ud-overview-score-table td {
  padding: 14px 12px;
}

.ud-overview-behavior-table .ud-behavior-group.is-exposure {
  background: rgba(60, 124, 219, 0.09);
}

.ud-overview-behavior-table .ud-behavior-group.is-visit {
  background: rgba(77, 160, 255, 0.12);
}

.ud-overview-behavior-table .ud-behavior-group.is-favorite {
  background: rgba(84, 193, 173, 0.12);
}

.ud-overview-behavior-table .ud-behavior-group.is-purchase {
  background: rgba(255, 171, 86, 0.14);
}

.ud-overview-behavior-table thead .ud-behavior-group {
  color: #23436c;
  box-shadow: inset 0 -1px 0 rgba(88, 140, 214, 0.08);
}

.ud-overview-behavior-table tbody .ud-behavior-group {
  box-shadow: inset 0 -1px 0 rgba(88, 140, 214, 0.08);
}

.ud-overview-behavior-table tbody tr:last-child .ud-behavior-group {
  color: #6f8096;
}

.ud-overview-empty-state {
  display: grid;
  gap: 18px;
}

.ud-overview-switch-pillset {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ud-overview-switch-pillset-boston {
  align-items: center;
  gap: 12px;
}

.ud-overview-switch-pill {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(108, 146, 198, 0.18);
  background: rgba(247, 250, 255, 0.84);
  color: #5c7697;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-switch-pill.is-active {
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.14), rgba(124, 181, 255, 0.2));
  color: #23436c;
  box-shadow: inset 0 0 0 1px rgba(45, 108, 223, 0.14);
}

.ud-boston-detail-scope {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 4px 3px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 248, 253, 0.96), rgba(236, 243, 251, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(174, 193, 219, 0.28),
    0 6px 14px rgba(60, 95, 145, 0.05);
}

.ud-boston-detail-scope-label {
  color: #6c85a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ud-boston-detail-scope .ud-channel-toggle {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.ud-overview-switch-panel[hidden] {
  display: none !important;
}

.ud-overview-switch-panel {
  min-width: 0;
  max-width: 100%;
}

.ud-overview-layer-stack {
  display: grid;
  gap: 14px;
}

.ud-overview-layer-band {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.82), rgba(241, 247, 255, 0.7));
}

.ud-overview-layer-band > .ud-overview-switch-panel {
  min-width: 0;
  max-width: 100%;
}

.ud-overview-layer-band-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ud-overview-layer-band-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
  color: #274d81;
}

.ud-overview-metric-grid {
  display: grid;
  gap: 12px;
}

.ud-overview-metric-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ud-overview-metric-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ud-overview-metric-grid.is-two-plus-one {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ud-overview-metric-spacer {
  min-height: 1px;
  visibility: hidden;
}

.ud-overview-metric-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 168px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(176, 186, 201, 0.16);
}

.ud-overview-metric-card.is-compact {
  min-height: 102px;
  padding: 14px 18px;
  gap: 6px;
}

.ud-overview-behavior-card {
  min-height: 156px;
}

.ud-overview-behavior-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ud-overview-behavior-card-pane {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.ud-overview-behavior-card-pane + .ud-overview-behavior-card-pane {
  padding-left: 14px;
  border-left: 1px solid rgba(202, 214, 229, 0.72);
}

.ud-overview-behavior-card-label {
  color: #7a8ca5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ud-overview-title-muted {
  color: #91a0b5;
  font-weight: 700;
}

.ud-overview-behavior-card .ud-overview-value {
  font-size: 24px;
}

.ud-overview-behavior-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ud-overview-metric-title {
  color: #365982;
  font-size: 15px;
  font-weight: 800;
}

.ud-overview-metric-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ud-overview-value {
  color: #1d426f;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.ud-overview-metric-yoy-block {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
  text-align: right;
}

.ud-overview-metric-card.is-compact .ud-overview-metric-yoy-block {
  gap: 0;
}

.ud-overview-metric-card.is-compact .ud-overview-metric-meta,
.ud-overview-metric-card.is-compact .ud-overview-delta {
  display: inline;
}

.ud-overview-delta {
  font-size: 14px;
  font-weight: 800;
  color: #6f8096;
}

.ud-overview-delta.is-positive {
  color: #0f8a6c;
}

.ud-overview-delta.is-negative {
  color: #d05063;
}

.ud-overview-note {
  color: #6d839f;
  font-size: 11px;
  line-height: 1.35;
}

.chart-source-notes {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(95, 125, 160, 0.24);
  color: #6f8eb1;
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
}

.chart-source-notes p {
  margin: 0;
}

.chart-source-notes.is-placeholder {
  color: #9aa9bc;
  font-style: italic;
}

.ud-overview-metric-meta {
  color: #7a8ca5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-journey-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.ud-overview-journey-layout.is-embedded {
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 0.98fr);
  gap: 14px;
  min-width: 0;
}

.ud-overview-journey-funnel {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.ud-overview-journey-layout.is-embedded .ud-overview-journey-funnel {
  gap: 8px;
}

.ud-overview-funnel-stage {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 18px 20px;
  border-radius: 18px;
  color: #143964;
  text-align: center;
  width: 100%;
  max-width: 100%;
  clip-path: polygon(6% 0%, 94% 0%, 100% 100%, 0% 100%);
}

.ud-overview-funnel-stage.is-stage-1 {
  background: linear-gradient(180deg, #9ec2ff, #7eaaf3);
}

.ud-overview-funnel-stage.is-stage-2 {
  background: linear-gradient(180deg, #7ba9f7, #6495eb);
}

.ud-overview-funnel-stage.is-stage-3 {
  background: linear-gradient(180deg, #5c8eed, #4d82e6);
}

.ud-overview-funnel-stage.is-stage-4 {
  background: linear-gradient(180deg, #4274d9, #3569d1);
  color: #f4f8ff;
}

.ud-overview-funnel-stage.is-width-1 {
  width: 100%;
}

.ud-overview-funnel-stage.is-width-2 {
  width: 84%;
}

.ud-overview-funnel-stage.is-width-3 {
  width: 68%;
}

.ud-overview-funnel-stage.is-width-4 {
  width: 52%;
}

.ud-overview-funnel-stage-label {
  font-size: 16px;
  font-weight: 800;
}

.ud-overview-journey-layout.is-embedded .ud-overview-funnel-stage {
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
}

.ud-overview-journey-layout.is-embedded .ud-overview-funnel-stage-label {
  font-size: 12px;
}

.ud-overview-journey-delta {
  display: grid;
  gap: 12px;
}

.ud-overview-journey-layout.is-embedded .ud-overview-journey-delta {
  gap: 8px;
  align-content: start;
}

.ud-overview-journey-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.ud-overview-journey-row strong {
  color: #2a4f81;
  font-size: 13px;
}

.ud-overview-journey-layout.is-embedded .ud-overview-journey-row {
  gap: 6px;
  min-height: 56px;
  padding: 9px 12px;
  border-radius: 16px;
}

.ud-overview-journey-layout.is-embedded .ud-overview-journey-row strong {
  font-size: 12px;
}

.ud-overview-journey-layout.is-embedded .ud-delta-bar {
  gap: 6px;
}

.ud-overview-journey-layout.is-embedded .ud-delta-axis {
  width: 100%;
  max-width: none;
  height: 14px;
}

.ud-overview-journey-layout.is-embedded .ud-delta-fill {
  height: 14px;
}

.ud-overview-journey-layout.is-embedded .ud-delta-label {
  font-size: 11px;
}

.ud-overview-behavior-journey .ud-overview-journey-row {
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ud-overview-behavior-journey .ud-overview-journey-row strong {
  font-size: 12px;
}

.ud-overview-behavior-journey .ud-delta-bar {
  display: contents;
}

.ud-overview-behavior-journey .ud-delta-label {
  justify-self: end;
  min-width: 56px;
  text-align: right;
  font-weight: 800;
}

.ud-overview-behavior-module {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.ud-overview-behavior-funnel-panel {
  display: grid;
  grid-template-rows: 36px 264px;
  align-items: start;
  justify-items: center;
  padding-top: 0;
  padding-left: 0;
}

.ud-overview-behavior-funnel-spacer {
  width: 100%;
}

.ud-overview-behavior-funnel-grid {
  display: grid;
  grid-template-rows: repeat(4, 66px);
  gap: 0;
  justify-items: center;
  width: 100%;
  max-width: 224px;
}

.ud-overview-behavior-funnel-stage {
  height: 52px;
  min-height: 52px;
  margin: 0;
  clip-path: polygon(10% 0, 90% 0, 82% 100%, 18% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  align-self: center;
}

.ud-overview-behavior-funnel-stage.is-width-1 {
  width: 100%;
}

.ud-overview-behavior-funnel-stage.is-width-2 {
  width: 82%;
}

.ud-overview-behavior-funnel-stage.is-width-3 {
  width: 68%;
}

.ud-overview-behavior-funnel-stage.is-width-4 {
  width: 54%;
}

.ud-overview-behavior-funnel-stage.is-stage-1 {
  background: linear-gradient(180deg, #b9cee6, #a8c0dc);
  color: #0f2842;
}

.ud-overview-behavior-funnel-stage.is-stage-2 {
  background: linear-gradient(180deg, #9ebfe2, #8eb2d8);
  color: #ffffff;
}

.ud-overview-behavior-funnel-stage.is-stage-3 {
  background: linear-gradient(180deg, #486d96, #365d87);
  color: #ffffff;
}

.ud-overview-behavior-funnel-stage.is-stage-4 {
  background: linear-gradient(180deg, #294664, #1f3955);
  color: #ffffff;
}

.ud-overview-behavior-funnel-label {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  word-break: keep-all;
  white-space: normal;
  max-width: 88%;
  text-align: center;
}

.ud-overview-behavior-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  justify-items: center;
}

.ud-overview-behavior-block {
  display: grid;
  gap: 0;
  max-width: 430px;
  width: 100%;
  min-width: 0;
}

.ud-overview-behavior-block-head {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px;
  border-bottom: 2px solid rgba(29, 47, 74, 0.82);
  color: #101d2d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
}

.ud-overview-behavior-block.is-volume .ud-overview-behavior-block-head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ud-overview-behavior-block.is-rate .ud-overview-behavior-block-head {
  grid-template-columns: minmax(124px, 1.1fr) repeat(3, minmax(64px, 0.85fr));
}

.ud-overview-behavior-block-body {
  display: grid;
  grid-template-rows: repeat(4, minmax(66px, 1fr));
}

.ud-overview-behavior-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(29, 47, 74, 0.82);
  min-width: 0;
}

.ud-overview-behavior-row:nth-child(even) {
  background: rgba(236, 242, 249, 0.86);
}

.ud-overview-behavior-row.is-disabled {
  color: #6d7f93;
}

.ud-overview-behavior-block.is-volume .ud-overview-behavior-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ud-overview-behavior-block.is-rate .ud-overview-behavior-row {
  grid-template-columns: minmax(124px, 1.1fr) repeat(3, minmax(64px, 0.85fr));
}

.ud-overview-behavior-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1d2f4a;
  min-width: 0;
}

.ud-overview-behavior-cell .ud-overview-delta {
  font-size: 13px;
}

.ud-overview-behavior-cell-label {
  justify-content: center;
  text-align: center;
  font-weight: 800;
}

.ud-overview-behavior-head-spacer {
  display: block;
  width: 100%;
}

.ud-overview-benchmark-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.ud-overview-benchmark-action-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ud-overview-benchmark-action-label {
  color: #5f7696;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ud-overview-benchmark-selector .ud-overview-cascade-menu {
  grid-template-columns: 220px;
}

.ud-overview-benchmark-menu .ud-overview-cascade-item {
  justify-content: flex-start;
}

.ud-overview-option-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(122, 150, 187, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.94);
}

.ud-overview-option-dot.is-selected {
  background: #2d6cdf;
  border-color: #2d6cdf;
}

.ud-radar-placeholder-card {
  align-content: start;
}

.ud-radar-shell.is-svg {
  position: relative;
  width: 280px;
  height: 280px;
}

.ud-radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ud-radar-grid {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(120, 145, 179, 0.26);
  stroke-width: 1;
}

.ud-radar-grid.is-inner {
  fill: rgba(255, 255, 255, 0.08);
}

.ud-radar-svg-axis {
  stroke: rgba(120, 145, 179, 0.3);
  stroke-width: 1;
}

.ud-radar-shape {
  stroke-width: 2;
}

.ud-radar-shape.current {
  fill: rgba(45, 108, 223, 0.18);
  stroke: rgba(45, 108, 223, 0.75);
}

.ud-radar-shape.compare {
  fill: rgba(107, 129, 157, 0.14);
  stroke: rgba(107, 129, 157, 0.75);
}

.ud-radar-axis-label-dynamic {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 80px;
  color: #6f87a9;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: default;
}

.ud-radar-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 132px;
  max-width: 154px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 35, 59, 0.94);
  color: #eef5ff;
  box-shadow: 0 14px 30px rgba(24, 46, 78, 0.22);
  pointer-events: none;
}

.ud-radar-tooltip strong {
  font-size: 12px;
  line-height: 1.3;
}

.ud-radar-tooltip span {
  font-size: 11px;
  line-height: 1.35;
}

.ud-overview-stage-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ud-overview-stage-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.ud-overview-stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ud-overview-stage-card-head strong {
  color: #274d81;
  font-size: 16px;
}

.ud-overview-stage-card-body {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 12px;
  align-items: center;
}

.ud-overview-kpi-table,
.ud-overview-benchmark-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0 3px;
}

.ud-overview-benchmark-table {
  min-width: 0;
  table-layout: fixed;
}

.ud-overview-kpi-table thead th,
.ud-overview-benchmark-table thead th {
  padding: 0 10px 6px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.ud-overview-kpi-table thead tr:first-child th {
  padding-top: 4px;
  padding-bottom: 10px;
  color: #3e5574;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ud-overview-kpi-table thead tr:first-child th[rowspan] {
  vertical-align: bottom;
}

.ud-overview-kpi-table thead tr:last-child th {
  padding-top: 2px;
}

.ud-overview-kpi-table tbody td,
.ud-overview-benchmark-table tbody td {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  color: #24364c;
  text-align: center;
  vertical-align: middle;
}

.ud-overview-benchmark-table thead th {
  padding: 0 6px 6px;
}

.ud-overview-benchmark-table tbody td {
  padding: 8px 8px;
}

.ud-overview-kpi-table tbody td:first-child,
.ud-overview-benchmark-table tbody td:first-child {
  text-align: left;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.ud-overview-kpi-table tbody td:last-child,
.ud-overview-benchmark-table tbody td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.ud-overview-kpi-table tbody tr.is-comparison-row td,
.ud-overview-benchmark-table tbody tr.is-comparison-row td {
  background: linear-gradient(180deg, rgba(241, 244, 248, 0.96), rgba(233, 238, 244, 0.96));
}

.ud-overview-benchmark-table tbody td.is-compare-value {
  color: #7d8ca1;
}

.ud-period-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.ud-period-pill.is-muted {
  background: rgba(107, 129, 157, 0.14);
  color: #5c718d;
}

.ud-row-helper {
  display: block;
  margin-top: 6px;
  color: #7a8ca5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ud-row-helper.is-lower {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.ud-overview-benchmark-cell-stack {
  display: grid;
  gap: 4px;
}

.ud-overview-benchmark-cell-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ud-overview-benchmark-cell-key {
  color: #7186a4;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.ud-overview-benchmark-cell-number {
  color: #24364c;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.ud-kpi-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(107, 129, 157, 0.12);
  color: #5f7696;
  font-size: 12px;
  font-weight: 700;
}

.ud-kpi-placeholder.is-muted {
  background: rgba(143, 158, 177, 0.12);
  color: #73859d;
}

.ud-overview-benchmark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ud-overview-benchmark-grid .ud-overview-table-wrap {
  overflow-x: hidden;
  scrollbar-gutter: auto;
}

.ud-overview-benchmark-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.ud-overview-benchmark-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(176, 186, 201, 0.14);
}

.ud-overview-benchmark-item strong {
  color: #2a4f81;
  font-size: 13px;
}

.ud-overview-benchmark-item span {
  color: #627895;
  font-size: 12px;
  font-weight: 700;
}

.ud-radar-placeholder-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.8), rgba(239, 245, 252, 0.7));
}

.ud-radar-kicker {
  align-self: start;
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.1);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ud-radar-chart-canvas {
  width: 100%;
  min-height: 320px;
}

.ud-radar-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.ud-radar-hotspot-layer {
  position: absolute;
  inset: 0;
}

.ud-radar-hotspot {
  position: absolute;
  width: 132px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: default;
}

.ud-radar-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 4px;
  min-width: 132px;
  max-width: 158px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 31, 52, 0.94);
  color: #edf4ff;
  box-shadow: 0 16px 32px rgba(22, 42, 74, 0.22);
  pointer-events: none;
}

.ud-radar-tooltip[hidden] {
  display: none !important;
}

.ud-radar-tooltip strong {
  font-size: 12px;
  line-height: 1.3;
}

.ud-radar-tooltip span {
  font-size: 11px;
  line-height: 1.35;
}

.ud-radar-shell {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}

.ud-radar-web,
.ud-radar-web.is-second {
  position: absolute;
  inset: 26px;
  clip-path: polygon(50% 0%, 86% 20%, 86% 68%, 50% 100%, 14% 68%, 14% 20%);
  border: 1px solid rgba(120, 145, 179, 0.24);
  background: rgba(255, 255, 255, 0.18);
}

.ud-radar-web.is-second {
  inset: 58px;
}

.ud-radar-axis {
  position: absolute;
  width: 1px;
  height: 120px;
  background: rgba(120, 145, 179, 0.3);
  transform-origin: bottom center;
  bottom: 50%;
  left: 50%;
}

.ud-radar-axis.axis-top {
  transform: translateX(-50%) rotate(0deg);
}

.ud-radar-axis.axis-top-right {
  transform: translateX(-50%) rotate(60deg);
}

.ud-radar-axis.axis-bottom-right {
  transform: translateX(-50%) rotate(120deg);
}

.ud-radar-axis.axis-bottom {
  transform: translateX(-50%) rotate(180deg);
}

.ud-radar-axis.axis-bottom-left {
  transform: translateX(-50%) rotate(240deg);
}

.ud-radar-axis.axis-top-left {
  transform: translateX(-50%) rotate(300deg);
}

.ud-radar-polygon {
  position: absolute;
  inset: 56px;
  clip-path: polygon(50% 14%, 77% 28%, 77% 62%, 50% 82%, 23% 62%, 23% 28%);
  border-radius: 18px;
}

.ud-radar-polygon.current {
  background: rgba(45, 108, 223, 0.18);
  border: 1px solid rgba(45, 108, 223, 0.3);
}

.ud-radar-polygon.yoy {
  inset: 74px;
  clip-path: polygon(50% 12%, 78% 28%, 78% 60%, 50% 80%, 22% 60%, 22% 28%);
  background: rgba(107, 129, 157, 0.16);
  border: 1px solid rgba(107, 129, 157, 0.28);
}

.ud-radar-axis-label {
  position: absolute;
  color: #6f87a9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ud-radar-axis-label.axis-top {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.ud-radar-axis-label.axis-top-right {
  top: 42px;
  right: 6px;
}

.ud-radar-axis-label.axis-bottom-right {
  right: 12px;
  bottom: 56px;
}

.ud-radar-axis-label.axis-bottom {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.ud-radar-axis-label.axis-bottom-left {
  left: 10px;
  bottom: 56px;
}

.ud-radar-axis-label.axis-top-left {
  top: 42px;
  left: 6px;
}

.ud-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ud-radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.ud-radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ud-radar-dot.is-current {
  background: #2d6cdf;
}

.ud-radar-dot.is-yoy {
  background: #8b9bb3;
}

.ud-radar-note {
  font-size: 12px;
  color: var(--text-soft);
}

.ud-overview-footnote {
  display: grid;
}

.ud-overview-note-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.ud-overview-note-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ud-overview-note-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.ud-overview-note-card.is-compact {
  padding: 16px 20px;
  border-radius: 20px;
}

.ud-overview-note-card.is-compact h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.ud-overview-note-card.is-compact p {
  font-size: 13px;
  line-height: 1.6;
}

.ud-range-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 18, 30, 0.32);
  backdrop-filter: blur(10px);
}

.ud-overview-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: rgba(10, 18, 30, 0.34);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ud-overview-modal {
  width: 100%;
  height: 100%;
  max-height: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.97));
  box-shadow: none;
  overflow: hidden;
}

.ud-overview-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.ud-overview-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.ud-overview-modal-head-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ud-overview-modal-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  color: #203e68;
}

.ud-overview-modal-note {
  margin: 10px 0 0;
  color: #607896;
  font-size: 13px;
  line-height: 1.65;
}

.ud-overview-modal-close {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(97, 121, 155, 0.12);
  color: #3f5d82;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ud-overview-trends-filter {
  position: relative;
}

.ud-overview-trends-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(88, 140, 214, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(235, 243, 255, 0.94));
  color: #2b4c77;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(48, 92, 155, 0.08);
}

.ud-overview-trends-filter-trigger-label {
  color: #6a82a2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-trends-filter-trigger strong {
  font-size: 12px;
  font-weight: 800;
}

.ud-overview-trends-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: 240px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(88, 140, 214, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(26, 52, 88, 0.16);
}

.ud-overview-trends-filter-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f7899;
  font-size: 11px;
  font-weight: 700;
}

.ud-overview-trends-filter-menu-head strong {
  color: #284872;
  font-size: 12px;
  font-weight: 800;
}

.ud-overview-trends-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.ud-overview-trends-filter-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d6cdf;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ud-overview-trends-filter-options {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.ud-overview-trends-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 12px;
  background: rgba(247, 250, 255, 0.96);
  color: #43607f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ud-overview-trends-filter-option.is-active {
  border-color: rgba(45, 108, 223, 0.22);
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.12), rgba(120, 182, 255, 0.18));
  color: #214d90;
}

.ud-overview-trends-filter-option[data-is-locked="true"] {
  cursor: default;
}

.ud-overview-trends-filter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(45, 108, 223, 0.1);
  color: #2d6cdf;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.ud-overview-trends-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ud-overview-trends-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.08);
  color: #35598c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-modal-body {
  display: grid;
  gap: 18px;
  overflow: hidden;
  min-height: 0;
}

.ud-overview-modal-body.is-focus-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.ud-overview-trends-group {
  display: grid;
  gap: 10px;
}

.ud-overview-trends-group-head h3 {
  margin: 0;
  color: #23436c;
  font-size: 18px;
}

.ud-overview-trends-table-wrap {
  width: 100%;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.ud-overview-trends-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.ud-overview-trends-table th,
.ud-overview-trends-table td {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(88, 140, 214, 0.1);
  text-align: center;
  white-space: nowrap;
}

.ud-overview-trends-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(242, 247, 253, 0.98);
  color: #5d7695;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ud-overview-trends-table tbody th {
  color: #24446e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(250, 252, 255, 0.92);
}

.ud-overview-trends-table tbody td {
  color: #243954;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ud-overview-trends-selector {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 16px;
  padding: 8px 6px 8px 0;
  min-height: 0;
  overflow: auto;
  height: 100%;
}

.ud-overview-trends-selector-group {
  display: grid;
  gap: 10px;
}

.ud-overview-trends-selector-group h3 {
  margin: 0;
  color: #284b7b;
  font-size: 14px;
}

.ud-overview-trends-selector-list {
  display: grid;
  gap: 8px;
}

.ud-overview-trends-selector-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.88);
  color: #48617f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ud-overview-trends-selector-item.is-active {
  border-color: rgba(45, 108, 223, 0.2);
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.12), rgba(120, 182, 255, 0.18));
  color: #1f4d92;
  box-shadow: inset 0 0 0 1px rgba(45, 108, 223, 0.08);
}

.ud-overview-trends-focus {
  display: grid;
  grid-template-rows: auto 248px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

.ud-overview-trends-focus-head h3 {
  margin: 6px 0 0;
  color: #213f69;
  font-size: 24px;
}

.ud-overview-trends-focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ud-overview-trends-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
}

.ud-overview-trends-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5e7696;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ud-overview-trends-legend-swatch {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 10px;
  flex: 0 0 auto;
}

.ud-overview-trends-legend-swatch.is-primary-bar {
  border-radius: 4px 4px 0 0;
  background: #7ba7df;
}

.ud-overview-trends-legend-swatch.is-primary-line::before,
.ud-overview-trends-legend-swatch.is-yoy-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.ud-overview-trends-legend-swatch.is-primary-line::after,
.ud-overview-trends-legend-swatch.is-yoy-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ud-overview-trends-legend-swatch.is-primary-line::before {
  background: #2f67d8;
}

.ud-overview-trends-legend-swatch.is-primary-line::after {
  background: #2f67d8;
}

.ud-overview-trends-legend-swatch.is-yoy-line::before {
  background: #4aa3a1;
}

.ud-overview-trends-legend-swatch.is-yoy-line::after {
  background: #4aa3a1;
}

.ud-overview-trends-focus-stage {
  height: 248px;
  border: 1px solid rgba(88, 140, 214, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.84));
}

.ud-overview-trends-table.is-focus tbody th,
.ud-overview-trends-table.is-focus tbody td {
  text-align: center;
  vertical-align: middle;
}

.ud-overview-trends-table-sub {
  display: block;
  margin-top: 2px;
  color: #6f86a1;
  font-size: 10px;
  font-weight: 700;
}

.ud-overview-trends-table .ud-overview-delta {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-page.is-trends-modal-open {
  position: relative;
  display: block;
  height: calc(100vh - 88px);
  min-height: calc(100vh - 88px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
}

.dashboard-page.is-trends-modal-open .ud-overview-modal-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: inherit;
}

.dashboard-page.is-trends-modal-open .ud-overview-modal {
  border-radius: 0;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
}

.dashboard-page.is-trends-modal-open .ud-overview-modal-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.dashboard-page.is-trends-modal-open .ud-overview-modal-body {
  display: grid;
  min-height: 0;
  padding-right: 0;
}

.dashboard-page.is-trends-modal-open .ud-overview-trends-focus {
  grid-template-rows: auto 248px minmax(0, 1fr);
  min-height: 0;
}

.dashboard-page.is-trends-modal-open .ud-overview-trends-table-wrap {
  align-self: stretch;
}

body[data-ud-trends-modal-open="true"] > [data-scroll-top-button] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 1200px) {
  .ud-overview-modal-body.is-focus-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .dashboard-page.is-trends-modal-open {
    height: calc(100vh - 72px);
    min-height: calc(100vh - 72px);
  }

  .ud-overview-modal {
    padding: 20px;
  }

  .ud-overview-modal-body.is-focus-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
}

.ud-range-popover {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(88, 140, 214, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(21, 42, 71, 0.22);
}

.ud-range-popover-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.ud-range-popover-header h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.ud-popover-close,
.ud-secondary-btn,
.ud-primary-btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.ud-popover-close,
.ud-secondary-btn {
  color: #45607f;
  background: rgba(107, 129, 157, 0.12);
}

.ud-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #3d7bfd, #2d60d6);
}

.ud-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ud-range-field {
  display: grid;
  gap: 8px;
  color: #56708f;
  font-size: 13px;
  font-weight: 700;
}

.ud-range-field input {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(88, 140, 214, 0.16);
  font: inherit;
}

.ud-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.detail-return-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1550;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(45, 108, 223, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.94), rgba(120, 182, 255, 0.94));
  box-shadow: 0 18px 36px rgba(23, 67, 128, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.detail-return-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .ud-layout-grid {
    grid-template-columns: 1fr;
  }

  .ud-summary-grid,
  .ud-two-column {
    grid-template-columns: 1fr;
  }

  .ud-scorecard-card,
  .ud-trend-card {
    padding: 22px;
  }

  .ud-score-layout {
    grid-template-columns: 1fr;
  }

  .ud-filter-toolbar {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .ud-filter-toolbar-compact {
    width: 100%;
    min-width: 0;
  }

  .ud-filter-toolbar .filter-toolbar-item-range {
    min-width: 0;
  }

  .ud-performance-matrix-card {
    padding: 22px;
  }

  .ud-profile-card,
  .ud-funnel-card {
    padding: 22px;
  }

  .ud-overview-panel-card {
    padding: 22px;
  }

.ud-overview-page-tight .ud-overview-panel-card {
  padding: 20px;
}

  .ud-overview-filter-toolbar {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .ud-overview-filter-toolbar .filter-toolbar-item {
    width: 100%;
  }

  .ud-section-header-actions {
    justify-items: start;
  }

  .ud-section-context {
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .ud-funnel-layout {
    grid-template-columns: 1fr;
  }

  .ud-overview-benchmark-grid {
    grid-template-columns: 1fr;
  }

  .ud-overview-behavior-shell {
    grid-template-columns: 1fr;
  }

  .ud-overview-behavior-module,
  .ud-overview-behavior-matrix {
    grid-template-columns: 1fr;
  }

  .ud-overview-behavior-funnel-panel {
    padding-top: 0;
  }

  .ud-overview-behavior-block.is-rate .ud-overview-behavior-block-head,
  .ud-overview-behavior-block.is-rate .ud-overview-behavior-row {
    grid-template-columns: minmax(96px, 1fr) repeat(3, minmax(0, 1fr));
  }

  .ud-overview-metric-grid.is-three,
  .ud-overview-metric-grid.is-two,
  .ud-overview-metric-grid.is-two-plus-one,
  .ud-overview-stage-card-grid,
  .ud-overview-journey-layout {
    grid-template-columns: 1fr;
  }

  .ud-chart-stage {
    height: 360px;
  }

  .ud-trend-card .ud-chart-stage {
    height: 336px;
  }

  .ud-trend-gap-summary {
    align-items: flex-start;
  }

  .ud-trend-gap-note {
    width: 100%;
  }

  .ud-range-grid {
    grid-template-columns: 1fr;
  }
}
